import request from '@/utils/request'

// 查询教师校区表列表
export function listCampus(query) {
  return request({
    url: '/teacher/campus/list',
    method: 'get',
    params: query
  })
}

// 查询教师校区表详细
export function getCampus(id) {
  return request({
    url: '/teacher/campus/' + id,
    method: 'get'
  })
}

// 新增教师校区表
export function addCampus(data) {
  return request({
    url: '/teacher/campus',
    method: 'post',
    data: data
  })
}

// 修改教师校区表
export function updateCampus(data) {
  return request({
    url: '/teacher/campus',
    method: 'put',
    data: data
  })
}

// 删除教师校区表
export function delCampus(id) {
  return request({
    url: '/teacher/campus/' + id,
    method: 'delete'
  })
}
